#ifndef MODBUSMANGER_H
#define MODBUSMANGER_H

#include <QObject>
#include "ModbusClient.h"
#include "ModbusClient_dev.h"
#include "ModbusComm.h"
#include <QMap>
class ModbusManger : public QObject
{
    Q_OBJECT
public:
    explicit ModbusManger(QObject *parent = nullptr);
    void register_dev_client(ModbusClient_dev *dev, ModbusClient *client);
    void unregister_dev(ModbusClient_dev *dev);
    void unregister_client(ModbusClient *client);
    QMap<uint8_t,ModbusClient_dev *>dev_client_map;
    QMap<uint8_t,ModbusClient *>dev_client_client_map;
signals:

public slots:
    void request_receive_data(ModbusRequest request);
};

#endif // MODBUSMANGER_H
